export const login = ()=>{
  return new Promise((resolve,reject)=>{
    wx.login({
      success:(result)=>{
        resolve(result)
      },
      fail:(error)=>{
        reject(error)
      }
    })
  })
}